#include<bits/stdc++.h>

using namespace std;


using ll = long long;
#define endl '\n'
template<typename T=int>
inline T read() {
    T x;
    cin >> x;
    return x;
}
int f(int *a,int*b)
{
  if(a==b)return *a;
  else return *a+f(a+1,b);

}
int main() {
    int a[]={1,3,5,7,9,2,4,6,8,0};
    int n=10;
    cout<<f(a+5,a+10)<<endl;


    return 0;
}
